<?php
header("Content-type: text/html; charset=utf-8"); 
include 'ImageCreater.php';
include 'WordCreater.php';
include 'UyghurCharUtilities.class1.php';

$name = "تۇرغۇنئاي";
$of = "نىڭ";
$plan = "يىلدىكى پىلانى";
$year = " 9102- ";

$ucu = new UyghurCharUtilities();	
//实例化创建生成语句对象
$word_creater = new WordCreater();
$word = $word_creater -> reverse2($ucu -> getUyPFStr($word_creater -> getWord()));//随机生成的语句
$img = $word_creater -> getImg();//随机生成的图片
$name = $word_creater -> reverse2($ucu -> getUyPFStr($name.$of.$year.$plan));
//实例化图片添加对象
$image_creater = new ImageCreater('img/back.jpg','images/'.$img,'img/qr.jpg');
//生成图片
$image_creater->createImage();
//添加名字
$image_creater -> addFont(25,4,100,80,'fonts/UKIJ3D.TTF',$name);
//添加情绪
$image_creater -> addFont(20,0,240,230,'fonts/UKIJ3D.TTF',$word);
//显示图片
$image_creater->showImage();

?>